let timer: any = null;

window.onresize = () => {
  if (!/Mobi|Android|iPhone/i.test(navigator.userAgent)) {
    clearTimeout(timer);
    timer = setTimeout(() => {
      setPcSize();
    }, 800);
  }
};

window.onload = () => {
  if (!/Mobi|Android|iPhone/i.test(navigator.userAgent)) {
    setPcSize();
  }
};

function setPcSize() {
  let oHtml = document.getElementsByTagName('html');
  let wrap = document.getElementsByClassName('alita-page');
  if( oHtml && wrap){
    if(oHtml[0]){
      oHtml[0].style.fontSize = '50px';
    }
    if( wrap[0]){
      wrap[0].style.margin = '0 auto';
       // wrap[0].style.width = '375px';
    }
    
  }
}
